package com.lzy.wzy.utils;

import com.lzy.wzy.constant.MyConstant;

import java.util.Map;

public class PublicUtils {

    public static String getResult(String status,int idf) {
        String result;
        if (MyConstant.TemplateStatus.PASSED.equals(status)) {
            if (idf == 0) {
                result = MyConstant.TemplateStatus.IS_ENABLED;
            } else {
                result = MyConstant.TemplateStatus.DISABLED;
            }
        } else {
            result = MyConstant.TemplateStatus.PENDING_REVIEW;
        }
        return result;
    }

    public static String comparingById(Map<String, String> map){
        return map.get("id");
    }
}
